﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1.DesignerPatter.ChainOfRespinsibility
{
    class Program1
    {
        static void Main()
        {
            ConcretHandler1 con1 = new ConcretHandler1();
            ConcretHandler2 con2 = new ConcretHandler2();
            ConcretHandler3 con3 = new ConcretHandler3();

            con1.SetSuccessor(con2);
            con2.SetSuccessor(con3);

            con1.HandlerRequest(1);
            con1.HandlerRequest(22);
            con1.HandlerRequest(33);
            Console.Read();
        }
    }
}
